-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract common trigger binding logic #79
base: main
Are you sure you want to change the base?
Conversation
Thanks for apotting that! It's been too long since I've played with Python. (Side note- that decorator trick is also really cool! It makes sense now that I've seen it, but I don't think I'd have ever thought of it myself- I probably would've ended up translating the code into a single expression) |
Weird- The *By the way, it looks like My impulse would be to remove I'm not familiar with how Python units work (How does the pybind work with the C++ units classes?), but it looks like you can probably implement |
I'm not sure why I merged fork. I agree it should be removed. Python will pass units to C++ as a float, in the unit that the function parameter is specified as. There is no mechanism to check units, but the name of the unit ends up in the |
Any ideas on the |
Update on this- The upstream PR was just closed, so |
Hmm. I think a recent change to WPILib means |
Those bugs should now be fixed if you rebase onto main. |
Also use previous and current
1779151
to
ecc63bd
Compare
Co-authored-by: Vasista Vovveti <[email protected]>
My bad, I forgot to pull after applying @TheTripleV's suggested change so when I rebased I accidentally dropped that commit. |
Also use previous and current
Port of wpilibsuite/allwpilib#7550, which was merged before I could open this PR.